#ifndef UARTWORKER_H
#define UARTWORKER_H

#include <QObject>
#include "QThread"

class UartWorker : public QThread
{
    Q_OBJECT
public:
    explicit UartWorker(QObject *parent = nullptr);

    void run() ;
    void setRunState(bool flag=true);
signals:
    void resultReady(const QString &s);
private:
    bool m_run_flag;
    QString m_PortName;
};

#endif // UARTWORKER_H
